package com.ross.send;

import com.ross.message.service.Message;

import java.util.ServiceLoader;

/**
 * @version 1.0.0
 * @className: ApiTest
 * @description:
 * @author: zhangjunfa
 * @date: 2023/9/4 10:10
 */
public class ApiTest {
    public static void main(String[] args) {
        ServiceLoader<Message> loader = ServiceLoader.load(Message.class);
        for (Message value : loader) {
            value.send("测试发送消息");
        }
    }
}
